#ifndef __WINDOW_H__
#define __WINDOW_H__

#include <ncurses.h>
#include <string.h>
#include <unistd.h>

#include "user.h"

struct chat_window
{
	WINDOW *header;
	WINDOW *output;
	WINDOW *friends;
	WINDOW *input;

	struct user* owner;
};


WINDOW *chat_win_create(int _h, int _w, int _y, int _x);
void chat_win_create_header();
void chat_win_create_output();
void chat_win_create_friends();
void chat_win_create_input();
void chat_win_put_str(WINDOW *win, int _y, int _x, const char *str);
void chat_win_get_str(WINDOW *win, char* out);
void chat_win_clr_lines(WINDOW *_w, int begin, int lines);

extern struct chat_window g_win; 

#endif
